package com.spring.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @version 1.0.0
 * @Date: 2022/6/18 10:26
 * @Author ZhuYouBin
 * @Description
 */
@Controller
public class ThymeleafController {

    @RequestMapping("/thymeleaf")
    public String thymeleaf(Model model) {
        // 跳转到 fm_free.ftl 页面
        model.addAttribute("data", "采用Thymeleaf视图解析器");
        return "thymeleaf";
    }

}
